
<div id="main" style="padding:8px">
	<div>
    	<h1>Foto utente</h1>
   	</div>

	<div id="main-column">
    <table border="0" cellspacing="8">
		<?php
        
        while ($row = mysql_fetch_array($this->_result))
        {    
            $nome_foto = stripslashes($row['nome_foto']);
            $ordine = $row['ordine'];
            $f_attiva = $row['f_attiva'];
            $f_principale = $row['f_principale'];			
            ?>
		<tr>
            <td>
                <img src="images/users/<?php echo $nome_foto; ?>" border="0" height="200px" class="brd">
             </td>
                   
            <td valign="top" align="left">
                <img src="images/users/box/<?php echo $nome_foto; ?>" border="0" class="brd2">
            </td>
            <td valign="top" align="left">
                <label><?php echo($f_principale=="S" ? "Principale" : ""); ?></label>
            </td>
            
            <td align="center">
            <form action="profile_photo_action.php" method="POST" name="delete_foto" runat="server">
                <input type="hidden" value="<?php echo $nome_foto; ?>" name="nome_foto" />	
                <input type="hidden" value="<?php echo $f_principale; ?>" name="f_principale" />	
                <input type="submit" value="" name="delete_foto" class="bt1" />	
                <input type="submit" value="" name="set_foto_principale" class="bt2" />	
			</form>
            </td>
		</tr>
            <?		
        }
        mysql_free_result($this->_result);    
        ?>

	</table>
	</div>
</div>   